<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>

<script type="text/javascript">

    function Person() {
    }
    Person.prototype = {
        constructor: Person,
        name: '',
        age: '',
        gender: '',
        sayName: function () {
            console.log(this.name)
        }
    }
    Object.defineProperty(Person.prototype, 'constructor', {
        enumerable: false,
        value: Person
    })

</script>

</body>
</html>
